package com.wing.storage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.storage.model.entity.ProductInventoryDetail;

import java.util.Map;

/**
 * 产品库存明细-Service
 *
 * @author xiayang
 */
public interface ProductInventoryDetailService extends IService<ProductInventoryDetail> {

    /**
     * 产品库存明细列表
     *
     * @param page   分页信息
     * @param params 参数信息
     * @return
     */
    Page<ProductInventoryDetail> pageList(Page page, Map<String, Object> params);

    /**
     * 产品入库
     *
     * @param productInventoryDetail 产品库存入库明细
     */
    void productInStorage(ProductInventoryDetail productInventoryDetail);

    /**
     * 产品出库
     *
     * @param productInventoryDetail 产品库存出库明细
     */
    void productOutStorage(ProductInventoryDetail productInventoryDetail);


    /**
     * 产品库存明细详情
     *
     * @param ProductInventoryDetailId 产品库存明细ID
     * @return
     */
    ProductInventoryDetail get(Long ProductInventoryDetailId);

}
